package cn.qicaiwang.open.websocket.service.impl;


import cn.qicaiwang.open.common.entity.CrmTask;
import cn.qicaiwang.open.common.req.CrmTaskREQ;
import cn.qicaiwang.open.websocket.mapper.CrmTaskMapper;
import cn.qicaiwang.open.websocket.service.ICrmTaskService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author GAOXI
 * @Date:2025/4/22 14:08
 * @Description:
 * @version：1.0
 **/
@Service
public class CrmTaskService extends ServiceImpl<CrmTaskMapper, CrmTask> implements ICrmTaskService {
    @Autowired
    private CrmTaskMapper crmTaskMapper;

    @Override
    public Page<CrmTask> pagelist(Page page, CrmTaskREQ params) {
        return crmTaskMapper.page(page, params);
    }

    @Override
    public List<CrmTask> rubbish(Page page) {
        return crmTaskMapper.rubbish(page);
    }

    @Override
    public boolean restore(String id) {
        return crmTaskMapper.restore(id);
    }

    @Override
    public boolean clear() {
        return crmTaskMapper.clear();
    }
}
